package com.lxh.cp.builder;

import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.bean.WxCpXmlMessage;
import me.chanjar.weixin.cp.bean.WxCpXmlOutImageMessage;
import me.chanjar.weixin.cp.bean.WxCpXmlOutMessage;

/**
 * created by lanxinghua@2dfire.com on 2020/2/23
 */
public class ImageBuilder extends AbstractBuilder {

    @Override
    public WxCpXmlOutMessage build(String content,
                                   WxCpXmlMessage wxMessage,
                                   WxCpService service) {
        WxCpXmlOutImageMessage m = WxCpXmlOutMessage.IMAGE().mediaId(content)
                .fromUser(wxMessage.getToUserName()).toUser(wxMessage.getFromUserName())
                .build();
        return m;
    }

}